feat: trezor hardware support#792
Open
coreyphillips wants to merge 79 commits into
Open
Conversation
- Implement trezor hardware support via USB and Bluetooth
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Bumps bitkit-core version to 0.1.44 - Adds SendTransactionSection.kt
# Conflicts: # app/src/main/java/to/bitkit/ui/ContentView.kt # app/src/main/java/to/bitkit/ui/settings/AdvancedSettingsScreen.kt # app/src/main/java/to/bitkit/ui/settings/AdvancedSettingsViewModel.kt
# Conflicts: # app/src/main/java/to/bitkit/ui/ContentView.kt
…to feat/trezor-hardware-support
# Conflicts: # gradle/libs.versions.toml
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
a3fbcf0 to
e951e8a
Compare
Collaborator
|
Follow-up for review #4033332481: the remaining actionable checklist is handled in stacked PR #939.
No unresolved inline review threads remain on this PR or #939 for this checklist. |
42b92f7 to
280c4e7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Trezor dev dashboard gives native developers a place to test and troubleshoot Trezor hardware flows before user-facing Trezor features ship.
This PR:
Settings -> Advanced -> Dev Settings -> Trezor.TREZOR_BRIDGE=true, so the dashboard can be tested through the official Trezor User Env emulator without a physical device.Preview
QA Notes
Latest bitkit-core bindings with Trezor hardware support: https://github.com/synonymdev/bitkit-core/releases/tag/v0.1.58
Official emulator setup:
git clone https://github.com/trezor/trezor-user-env ~/repos/github/trezor-user-env../run.sh --no-regtest.docker exec trezor-user-env.mac sh -lc 'apt-get update && apt-get install -y libsdl3-0 libsdl3-image0'.Android emulator install:
TREZOR_BRIDGE=true TREZOR_BRIDGE_URL=http://10.0.2.2:21325 ./gradlew installDevDebugPhysical phone install:
adb reverse tcp:21325 tcp:21325TREZOR_BRIDGE=true TREZOR_BRIDGE_URL=http://127.0.0.1:21325 ./gradlew installDevDebugValidation done:
~/repos/github/trezor-user-envand started with./run.sh --no-regtest.websocketsinstalled for controller commands.pingpassed.bridge-startwithnode-bridgepassed.2-mainemulator starts after installinglibsdl3-0andlibsdl3-image0in the container.emulator-setuppassed with the deterministicall all ...seed and labelBitkit Test Trezor.curl -X POST http://localhost:21325/enumeratereturns the official Bridge device:path=1,id=127.0.0.1:21324,apiType=usb.adb reverse tcp:21325 tcp:21325passed on the Pixel 10 Pro test phone../gradlew compileDevDebugKotlin testDevDebugUnitTest detekt --rerun-taskspassed.Manual dashboard tap-through checklist:
Trezor Bridge Emulator/ Bridge device.NATIVE_SEGWIT,0 sats,0UTXOs, and no send form is shown for the unfunded emulator account.